<include file="Public:header" title="编辑用户 - 用户管理" />
<h2>编辑用户</h2>
<div id="editTips" class="tip" style="width:100%;">编辑提示</div>
<form method="post" action="<{:U('doEdit?id='.$userInfo['id'])}>" onsubmit="return post_form('<{:U('doEdit?id='.$userInfo['id'])}>',this,'editTips');">
<p><label for="editUsername">用户名</label></p>
<p><input id="editUsername" type="text" placeholder="用户名" name="username" class="text" value="<{$userInfo.username}>" style="width:500px;" /></p>
<p><label for="editPassword">密码</p>
<p></label><input id="editPassword" type="password"  name="password" placeholder="密码（留空为不修改）" class="text" style="width:500px;" /></p>
<p><label for="editEmail">邮箱</label></p>
<p><input id="editEmail" type="email" placeholder="电子邮箱"  name="email"  class="text" value="<{$userInfo.email}>" style="width:500px;"  /></p>
<p><label for="editName">姓名</label></p>
<p><input id="editName" type="text" placeholder="姓名"  name="name" class="text" value="<{$userInfo.name}>" style="width:500px;" /></p>
<p><label>性别</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="male" name="sex" class="radio" value="1"<?php if($userInfo['sex']==1) echo ' checked'; ?> /><label for="male">男</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="female" class="radio" name="sex" value="2"<?php if($userInfo['sex']==2) echo ' checked'; ?> /><label for="female">女</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" id="unknown" class="radio" name="sex" value="0"<?php if($userInfo['sex']==0) echo ' checked'; ?> /><label for="unknown">保密</label></p>
<p><label for="editMobile">手机</label></p>
<p><input id="editMobile" type="text" placeholder="手机号"  name="mobile" class="text" value="<{$userInfo.mobile}>" style="width:500px;" /></p>
<p><label for="editSite">网站</label></p>
<p><input id="editSite" type="text" placeholder="网站"  name="site" class="text" value="<{$userInfo.site}>" style="width:500px;" /></p>
<p><label for="editAddress">地址</label></p>
<p><input id="editAddress" type="text" placeholder="地址"  name="address" class="text" value="<{$userInfo.address}>" style="width:500px;" /></p>
<p><label for="editZip">邮编</label></p>
<p><input id="editZip" type="text" placeholder="邮编"  name="zip" class="text" value="<{$userInfo.zip}>" style="width:500px;" /></p>
<p><label for="editIntro">简介</label></p>
<p><textarea id="editIntro" placeholder="简介" name="Intro" class="text" style="width:500px;height:100px;"><{$userInfo.intro}></textarea></p>
<hr />
<p><label for="editIntegration">信誉</label></p>
<p><input id="editIntegration" type="text" placeholder="信誉"  name="integration" class="text" value="<{$userInfo.integration}>" style="width:500px;" /></p>
<p><label for="editCredit">积分</label></p>
<p><input id="editCredit" type="text" placeholder="积分"  name="credit" class="text" value="<{$userInfo.credit}>" style="width:500px;" /></p>
<p><label>权限</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" id="editAdmin" name="admin" style="width:20px;" value="1" <?php if($isAdmin==true) echo ' checked'; ?> /><label for="editAdmin">管理员</label></p>
<p><input type="submit" value="保存" class="btn"  style="width:508px;" /></p>
</form>
<include file="Public:footer" />